<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>

<body>
    <p name="local"></p>
    <p name="ip"></p>
    <p name="port"></p>

    <!--<a href="mysql" download="mysql.rar">超链接下载</a>-->
</body>

<script>
    $.ajax({
        url: "/getServiceMsg",
        async: false,
        success(data){
            console.log(data);
            $("[name='local']").html(data.local);
            $("[name='ip']").html(data.localAddr);
            $("[name='port']").html(data.localPort);
        }
    })
</script>
</html>